README - HazardousUploadProgram 

 This program populates the Hazardous waste fields according to the requirements
  in the document, "PPS-N Add Hazardous Waste Status Fields". 
  
~~~~~~~~~~~~~~~~
 ~~ CHANGELOG ~~
~~~~~~~~~~~~~~~~ 

v0.0.3 | 10/14/2015
- Changed packaging to create a zip file
- This file contains 3 artifacts
  1. PS_PPS_Hazardous_Upload-{version}-SNAPSHOT-release.jar
  2. db.properties.template
  3. This README file

----------------

v0.0.2 | 10/07/2015
- Removed build profiles.
- Made to use external file for database connection properties

----------------

v0.0.1 | 09/03/2015 
-Initial Release.

~~~~~~~~~~~~~~~~


Usage:

This program needs 6 arguments. HazardousToHandle/HazardousToDispose must be loaded at the same time.
Example: java -jar PS_PPS_Hazardous_Upload-0.0.2-SNAPSHOT-release.jar -a=update -cp=path_to_file/conn.properties -hf=path_to_file/niosh_source_file.csv -hef=path_to_file/niosh_exception_file.csv -df=path_to_file/stericycle_source_file.csv -def=path_to_file/stericycle_exception_file.csv

 -a   [UPDATE|NULLIFY] Required. Update or NULLIFY mode. Update will update the database hazardous waste fields with values specified in the CSV files. NULLIFY will update the database hazardous waste fields to have null value.
 -cp  Required. Path to the database connection properties file. It needs to be in java properties format.
 -hf  Optional. Path to the hazardous to handle source file. It needs to be in CSV format.
 -hef Optional. Path to the hazardous to handle output exception file. It will be created using CSV format.
 -df  Optional. Path to the hazardous to dispose source file. It needs to be in CSV format.
 -def Optional. Path to the hazardous to dispose output exception file. It will be created using CSV format.
 -oef Optional. Path to the orphan exception file. It will be created using CSV format.
 
 
---- Building a Release ------------------
 
 Use this command to build via maven:
 
 The below command will create an executable jar in the /target or build folder of the maven project
     named PS_PPS_Hazardous_Upload-v.{version}-SNAPSHOT-zipfile.zip
     
  mvn clean install package 
  
 ---- Example Run ------------------------
 Hazardous CLI

C:\Users\serversebikm\.m2\repository\gov\va\med\pharmacy\PS_PPS_Hazardous_Upload
\0.0.2-SNAPSHOT>java -jar PS_PPS_Hazardous_Upload-3.0.0.DEV.jar -a=update -
hf=c:/projects/hazardous/test_data/NIOSH_NO_HEADER_TEST_CASE.csv -hef=c:/project
s/hazardous/test_data/NIOSH_OUTPUT_EXCEPTION.csv -df=c:/projects/hazardous/test_
data/STERICYCLE_NO_HEADER_TEST_CASE.csv -def=c:/projects/hazardous/test_data/STE
RICYCLE_OUTPUT_EXCEPTION.csv -cp=c:/projects/hazardous/test_data/db.properties -oef=c:/pro
jects/hazardous/test_data/ORPHAN_EXCEPTION_FILE.csv
 